package com.zzuli.xyd.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zzuli.xyd.pojo.Userinfo;
import com.zzuli.xyd.util.PageUtil;

import java.util.List;

/**
 * @auther pony
 * @create 2022-07-06 10:16
 */
public interface IUserService {
    public Boolean addUser(Userinfo userinfo);

    public Boolean rePwd(Userinfo userinfo);

    public Userinfo ckUsername(String username);

//    public List<Userinfo> getWorklist();

//    public IPage<Userinfo> pageWorkList(Integer pageIndex,Integer pageSize);



    /**
     * 根据id查找数据
     * @param id
     * @return
     */
    public Userinfo findById(Integer id);

    /**
     * 修改数据
     * @param model
     * @return
     */
    public int update(Userinfo model);

    /**
     * 批量删除
     * @param ids
     * @return
     */
    public int deleteBatch(String[] ids);// [3,4,50]

    public PageUtil<Userinfo> getUserinfoPage(Integer pageIndex, Integer pageSize, String keyword);
}
